#ifndef __BRUNCE_DEFINE_H_
#define __BRUNCE_DEFINE_H_

#include <string>
using namespace std;
///////////////

#define    BRUNCE_SUCCESS            0
#define    BRUNCE_TYPE_USER          1
#define    BRUNCE_TYPE_FRIENDS       2
#define    BRUNCE_ERR_ARGV          -1
#define    BRUNCE_ERR_NO_DATA       -2
#define    BRUNCE_ERR_NO_FOUND      -3
#define    BRUNCE_ERR_SYSTEM        -4


#define    BRUNCE_GET_FRIENDS        1 
#define    BRUNCE_FRIENDS_FRIENDS    2
#define    BRUNCE_GET_GRAPH          3
#define    BRUNCE_RESET_USER         4
#define    BRUNCE_GET_STATUS         5
#define    BRUNCE_GET_UVALUE         6
#define    BRUNCE_GET_NUM_FRIENDS    7 
#define    BRUNCE_GET_TYPE_FRIENDS   8 


#define   MAX_WRITE_BUFFER_LEN       1024*1024


class FObject{
public:
        string value;   /* mybe nickname, etc.    */
        char type;      /* mybe msn or qq         */
        string id;      /* ruid, msn email, etc.  */

        FObject(char *user, int itype, char *val){
                id = user;
                type =(char)(itype);
                value = val;
        }
        virtual ~FObject(){ }
} ;
void g_free_FObject(void * fg);

#define  COBWEB_VERSION   "20090610-01"

#endif // __BRUNCE_DEFINES_H_
